package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_integral"
    ,catalog="zutuan_prot"
)
public class JujuIntegral  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuIntegral";
	public static final String TABLE_NAME="juju_integral";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_integral = "integral"; 
	public static final String P_description = "description"; 
	public static final String P_typeid = "typeid"; 
	public static final String P_subject = "subject"; 
	public static final String P_subjectid = "subjectid"; 
	public static final String P_subjectname = "subjectname"; 
	public static final String P_delflag = "delflag"; 
	public static final String P_memo = "memo"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_updatetime = "updatetime"; 

     private String id;
     private int integral;
     private String description;
     private String typeid;
     private Integer subject;
     private String subjectid;
     private String subjectname;
     private Integer delflag;
     private String memo;
     private Date createtime;
     private Date updatetime;

    public JujuIntegral() {
    }
	
    public JujuIntegral(String id, int integral, String typeid, String subjectid) {
        this.id = id;
        this.integral = integral;
        this.typeid = typeid;
        this.subjectid = subjectid;
    }
    public JujuIntegral(String id, int integral, String description, String typeid, Integer subject, String subjectid, String subjectname, Integer delflag, String memo, Date createtime, Date updatetime) {
        this.id = id;
        this.integral = integral;
        this.description = description;
        this.typeid = typeid;
        this.subject = subject;
        this.subjectid = subjectid;
        this.subjectname = subjectname;
        this.delflag = delflag;
        this.memo = memo;
        this.createtime = createtime;
        this.updatetime = updatetime;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="integral", nullable=false)
    public int getIntegral() {
        return this.integral;
    }
    
    public void setIntegral(int integral) {
        this.integral = integral;
    }
    
    @Column(name="description", length=1024)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="typeid", nullable=false, length=36)
    public String getTypeid() {
        return this.typeid;
    }
    
    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }
    
    @Column(name="subject")
    public Integer getSubject() {
        return this.subject;
    }
    
    public void setSubject(Integer subject) {
        this.subject = subject;
    }
    
    @Column(name="subjectid", nullable=false, length=36)
    public String getSubjectid() {
        return this.subjectid;
    }
    
    public void setSubjectid(String subjectid) {
        this.subjectid = subjectid;
    }
    
    @Column(name="subjectname", length=512)
    public String getSubjectname() {
        return this.subjectname;
    }
    
    public void setSubjectname(String subjectname) {
        this.subjectname = subjectname;
    }
    
    @Column(name="delflag")
    public Integer getDelflag() {
        return this.delflag;
    }
    
    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }
    
    @Column(name="memo", length=1024)
    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="createtime", length=19)
    public Date getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="updatetime", length=19)
    public Date getUpdatetime() {
        return this.updatetime;
    }
    
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


